package 扑克牌;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;

public class Test {
    public static void display(CardList cardList){
        Iterator<Card>iterator=cardList.getList().listIterator();
        while(iterator.hasNext()){
            System.out.print(iterator.next());
        }
        System.out.println();
    }
    public static void main(String[] args) {
        CardList cardList=new CardList();
        display(cardList);
        cardList.shuffle();
        display(cardList);
        List<List<Card>> arr=cardList.licenSing();
        for (List<Card> tmp:arr) {
            System.out.println(tmp);
        }
        System.out.println(cardList.getList());
    }
}
